
use ppjdb;
go

update dbo.tblAppMenu set pagelocation='Domain/DomainManagement' where appmenuid=4
if exists (select 1 from dbo.tblAppMenu (nolock) where appmenuid > 9)
 begin
	delete from dbo.tblUserMenu where appmenuid > 9 
	delete from dbo.tblAppMenu where appmenuid > 9 
 end
